﻿namespace Nomo.UnityCoreModule.Waiters
{
    /// <summary>
    /// 真等待器。
    /// </summary>
    public sealed class TrueWaiter : PredicateWaiter
    {
        internal TrueWaiter(System.Func<bool> predicate) : base(predicate) { }

        private protected override bool KeepWaiting => !Predicate();
    }
}
